package com.jyw.business.obstacles.domain.vo.wechat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyw.common.annotation.Conversion;
import com.jyw.common.constant.SysDictTypeConstant;
import com.jyw.common.enums.ConversionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.util.Date;

/**
 * @author w_q
 * @date 2023/8/2915:29
 * @Description:
 */
@Data
@ApiModel("小程序我的工单返回VO")
@FieldNameConstants
public class WorkOrderQueryVO {

    @ApiModelProperty("故障id")
    private String id;

    @ApiModelProperty("工单id")
    private String orderId;

    @ApiModelProperty("工单号")
    private String orderNum;

    @ApiModelProperty(value = "紧急程度")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.OBS_FAULT_DEGREE)
    private Integer degree;

    @ApiModelProperty("紧急程度标签")
    private String degreeToName;

    @ApiModelProperty(value = "影响范围")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.OBS_FAULT_RANGE)
    private Integer rangeType;

    @ApiModelProperty("影响范围标签")
    private String rangeTypeToName;

    @ApiModelProperty(value = "当前状态")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.OBS_FAULT_STATE)
    private String currState;

    @ApiModelProperty("当前状态标签")
    private String currStateToName;

    @ApiModelProperty(value = "故障描述")
    private String faultRemark;

    @ApiModelProperty("报修科室id")
    private Long deptId;

    @ApiModelProperty(value = "报修科室")
    private String deptName;

    @ApiModelProperty(value = "报修人")
    private String user;

    @ApiModelProperty(value = "报修电话")
    private String phone;

    @ApiModelProperty(value = "响应类型")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.OBS_FAULT_RESPONSE)
    private Integer responseType;

    @ApiModelProperty("响应类型标签")
    private String responseTypeToName;

    @ApiModelProperty(value = "报修时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date repairTime;

    @ApiModelProperty("处理人id")
    private Long makeUser;


}
